package newcoder.huawei;

import java.io.IOException;
import java.util.Scanner;
import java.util.Stack;

/**
 * @author gh
 * @create 2021-05-31 14:40
 */
public class HJ106 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        String rts = "";
        for (int i = 0; i < str.length(); i++) {
            rts = str.substring(i, i + 1) + rts;
        }
        System.out.println(rts);
    }

    public String charSort(String a) {
        String b = "";
        Stack s = new Stack();
        for (char c : a.toCharArray()) {
            s.push(c);
        }
        while (!s.empty()) {
            System.out.println(s.pop());
            b += s.pop();
        }
        return b;
    }

    public static void main1(String[] args) throws IOException {
        int length = System.in.available();
        if (length > 2) {
            byte[] bts = new byte[length - 1];
            int flag = System.in.read(bts);
            if (flag != -1) {
                byte[] tmp = new byte[bts.length];
                for (int i = 0; i < tmp.length; i++) {
                    tmp[i] = bts[tmp.length - i - 1];
                }
                System.out.println(new String(tmp));
            }
        }
    }
}
